<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/sensitive',
    'namespace' => 'Frieza\\Modules\\Sensitive\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

    //关键词分类管理
    $router->get('/cate', 'WordController@cateList');
    $router->get('/cate/create', 'WordController@createCate');
    $router->get('/cate/edit', 'WordController@editCate');
    $router->get('/cate/edit/{tag}', 'WordController@editCate');
    $router->post('/cate/edit', 'WordController@editCatePost');
    $router->post('/cate/edit/{tag}', 'WordController@editCatePost');
    $router->get('/cate/delete/{tag}', 'WordController@delCate');


    $router->get('/words/add/{tag}/', 'WordController@editCate');
    $router->post('/words/edit/{tag}', 'WordController@editCateWordsPost');
    $router->get('/words/search/{tag}/', 'WordController@editCate');
    $router->get('/words/search/{tag}/{keyword}', 'WordController@editCate');
    $router->get('/words/search/{tag}/{keyword}/{next}', 'WordController@editCate');
    $router->post('/words/delete/{tag}', 'WordController@deleteCateWordsPost');


});
